import request from '@/utils/request'

export const getArticles = params => request.get('/admin/interview/query', { params })
// 添加面经
export const createArticle = data => {
  return request.post('/admin/interview/create', data)
}
// 删除面经
export const removeArticle = id => {
  return request.delete('/admin/interview/remove', {
    data: {
      id
    }
  })
}
// 获取单个面经
export const getArticleDetail = id => request.get('/admin/interview/show', { params: { id } })
// 更新面经数据
export const changeArticle = data => request.put('/admin/interview/update', data)
